package com.flw.eslab.dto;

import java.util.Date;

import com.flw.eslab.model.IpLog;

/** *
* 一条IP范围记录，不仅包括国家和区域，也包括起始IP和结束IP *
* 
* 
*/
public class IpLog_Dto {
	public Date date = new Date();
	public String ip;
	public String name;//如果name为空，就是匿名用户
    
	public IpLog_Dto(){
	}
    public IpLog_Dto(Date date,String ip,String name) {
        this.date=date;
        this.ip=ip;
        this.name=name;
    }
    public IpLog toIpLog(){
    	IpLog ipLog=new IpLog();
    	ipLog.setDate(date);
    	ipLog.setIp(ip);
    	ipLog.setName(name);
    	return ipLog;
    }
 }


